package cn.htu.edu.mapper;

import cn.htu.edu.common.ResponseModel;
import cn.htu.edu.entity.Orders;
import cn.htu.edu.entity.baseEntity.Orderz;
import cn.htu.edu.payload.request.orders.Order;
import cn.htu.edu.payload.request.orders.OrdersPerson;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dakai
 * @since 2024-05-10
 */
public interface OrdersMapper extends BaseMapper<Orders> {
    /**
     * 修改
     * @param order
     * @return
     */
    ResponseModel updateOrders(Order order);

    /**
     * 查询是否存在
     * @param id
     * @return
     */
    String countOrdersId(String id);

    /**
     * 根据id查询oname
     * @return
     */
    String getOrdersId(String id);

    /**
     * 修改
     * @param
     * @return
     */
    ResponseModel updateOrdersPerson(Orderz orderz);

}
